package com.imooc.security.core.social.qq.api;

import com.imooc.security.core.social.qq.connect.QQAdapter;
import com.imooc.security.core.social.qq.connect.QQServiceProvider;
import org.springframework.social.connect.ApiAdapter;
import org.springframework.social.connect.support.OAuth2ConnectionFactory;
import org.springframework.social.oauth2.OAuth2ServiceProvider;

public class QQConnectionFactory extends OAuth2ConnectionFactory<QQ> {
    /**
     * Create a {@link OAuth2ConnectionFactory}.
     *
     */
    public QQConnectionFactory(String providerId, String appId,String secret) {
        super(providerId, new QQServiceProvider(appId,secret), new QQAdapter());
    }
}
